#!/usr/bin/env python
# -*- coding: utf-8 -*-

from django.db import models

class DictSmallClass(models.Model):
    """
    @Author: kindey
    @Date: 2025/8/7
    @Description:
    """
    id = models.AutoField(primary_key=True)
    class_id = models.IntegerField(blank=True, null=True)
    class_code = models.CharField(max_length=50, blank=True, null=True)
    class_name = models.CharField(max_length=50, blank=True, null=True)
    dict_code = models.CharField(max_length=50, blank=True, null=True)
    dict_name = models.CharField(max_length=50, blank=True, null=True)
    dict_order = models.IntegerField(blank=True, null=True)
    remark = models.CharField(max_length=500, blank=True, null=True)
    field1 = models.CharField(max_length=50, blank=True, null=True)
    field2 = models.CharField(max_length=50, blank=True, null=True)
    field3 = models.CharField(max_length=50, blank=True, null=True)

    class Meta:
        db_table = 'DictSmallClass'
        app_label = 'source'

    def __str__(self):
        return f"{self.dict_name} ({self.id})"